# Makefile
.PHONY: build clean help  init


MAIN_CLI := cli.py # 主程序文件
OUTPUT_DIR := build # 构建中间产物 目录
NUITKA_FLAGS := --mingw64 --show-memory --show-progress --nofollow-imports # nuitka 构建参数



# 默认目标
all: build

# 构建可执行文件
build:
	nuitka --mingw64 --standalone --show-memory --show-progress --nofollow-imports --output-dir=$(OUTPUT_DIR) $(MAIN_CLI)

# 清理构建文件
clean:
	rm -rf $(OUTPUT_DIR)/

# 初始化 项目
init:
	pip install -r ./requirements.txt

# 显示帮助信息
help:
	@echo "Your Makefile options are:"
	@echo "  make          - build project (default)"
	@echo "  make build    - build project"
	@echo "  make clean    - clean build files"
	@echo "  make help     - show this help"
